﻿<%@ Page ValidateRequest="false" Language="C#" Theme="WebMaster" MasterPageFile="~/WebMaster/MasterPage.master"
    AutoEventWireup="true" Inherits="SouthernLand.WebMaster.Articles.ArticleAddEdit"
    CodeBehind="ArticleAddEdit.aspx.cs" %>

<%@ Register Src="~/WebMaster/Controls/Title.ascx" TagName="Title" TagPrefix="uc" %>
<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
<%@ Register TagPrefix="southern" Namespace="SouthernLand.Common.BOL.Articles" Assembly="SouthernLand"%>
<asp:Content ID="Content1" ContentPlaceHolderID="PageContent" runat="Server">
    <uc:Title runat="server" ResourceKey='' Text='cập nhật bài việt' />
    <table width="595" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr style="padding-top: 5pt;">
            <td colspan="2" align="center">
                <asp:Label runat="server" ID="lblMsg" Font-Bold="true" ForeColor="blue"></asp:Label>
            </td>
        </tr>
        <tr>
            <td width="75%" align="left">
                <asp:ValidationSummary runat="server" ID="valChangePasswordSummary" ShowMessageBox="true"
                    ShowSummary="false" />
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <b>
                                <%=ResourceManager.GetString("ArticleCategory") %>:</b>
                        </td>
                    </tr>
                    <tr>
                        <td style="padding-top: 3pt;">
                            <southern:ddlArticleCategory id="dlArticleCategory" runat="server" cssclass="Textbox" />
                            <asp:RangeValidator runat="server" ControlToValidate="dlArticleCategory" ID="rvl1"
                                Type="Integer" MinimumValue="2" MaximumValue="1000" Display="dynamic" ErrorMessage="Category not null" />
                        </td>
                    </tr>
                    <tr>
                        <td style="padding-top: 10pt;">
                            <b>
                                <%=ResourceManager.GetString("Title") %>:</b>
                        </td>
                    </tr>
                    <tr>
                        <td style="padding-top: 3pt;">
                            <asp:TextBox ID="txtTitle" TabIndex="1" Font-Bold="true" runat="server" Width="380"
                                MaxLength="500"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtTitle"
                                runat="server" ErrorMessage="Title not null" Display="None" />
                        </td>
                    </tr>
                    <tr>
                        <td style="padding-top: 10pt;">
                            <b>
                                <%=ResourceManager.GetString("Article_Trichdan") %>:</b>
                        </td>
                    </tr>
                    <tr style="padding-top: 3pt;">
                        <td>
                            <asp:TextBox ID="txtExcerpt" TabIndex="2" TextMode="MultiLine" Rows="5" runat="server"
                                Width="380" MaxLength="3000"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
            <td align="left" valign="top" width="90" style="padding-top: 20pt;">
                <table border="0" cellpadding="0" width="90" align="left">
                    <tr>
                        <td style="padding-top: 5pt;" height="90" width="100%" valign="top" align="center">
                            <img name="ImageItem" id="ImageItem" runat="server" border="1" src="~/WebMaster/Images/Picture.jpg"
                                width="80" />
                            <input type="hidden" runat="server" id="HiddenImageName" name="HiddenImageName" value="" />
                            <input type="hidden" runat="server" id="HiddenImageWidth" name="HiddenImageWidth"
                                value="-1" />
                            <input type="hidden" runat="server" id="HiddenImageHeight" name="HiddenImageHeight"
                                value="-1" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <input type="button" class="btupload" value=" Upload Picture" onclick='window.open("UploadFile.aspx?ActUpload=article","khunghinh","width=420,height=200,menubar=no,scrollbars=yes")' />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <br />
            </td>
        </tr>
        <tr style="padding-top: 8pt; padding-bottom: 3pt;">
            <td colspan="2">
                <b>
                    <%=ResourceManager.GetString("Article_Body") %>
                    :</b>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="font-size: 0.7em">
                <FTB:FreeTextBox id="txtBody" tabindex="3" toolbarlayout="FontFacesMenu,FontSizesMenu,FontForeColorsMenu,FontForeColorPicker,FontBackColorsMenu,FontBackColorPicker|Bold,Italic,Underline,Strikethrough,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink|InsertTable,EditTable,InsertImageFromGallery"
                    runat="Server" width="585px" height="200px" />
            </td>
        </tr>
        <tr>
            <td colspan="2" align="right" style="padding-top: 7pt; padding-right: 3pt; padding-bottom: 20pt;">
                <asp:CheckBox runat="server" ID="chkPriority" Text="" TextAlign="Left" />
                Tin nổi bật(Hiển thị trên cùng)
                <asp:Button runat="server" TabIndex="4" ID="btSave" OnClick="btSave_Click" Text=" Save "
                    CssClass="textbox" />
            </td>
        </tr>
    </table>
    <br />
    <br />
    <br />
    <br />
</asp:Content>
